package model.admin;

import java.util.ArrayList;

import myutil.Connect;

import vo.StudentDetailsVo;
import vo.mixed.StudentListVo;

public class ModifyStudentsMo {

	public Boolean editBatchStudentDetails(ArrayList<StudentListVo> BatchDetails){
		@SuppressWarnings("unused")
		String query="";
		return true;
	}
	public Boolean deleteBatchStudentDetails(int batch_id){
		
		return true;
	}
	public int addBatchStudentDetails(StudentDetailsVo StudentDetails, int batch_id,String type){
		String query="";
		query="INSERT INTO student_details (" +
				"student_name," +
				"roll_number, " +
				"registration_number, " +
				"mobile_number, " +
				"phone_number, " +
				"address_line_1, " +
				"address_line_2, " +
				"city, " +
				"state, " +
				"email_id, " +
				"status) VALUES ('" +
				StudentDetails.getStudent_name()+"','" +
				StudentDetails.getRoll_number()+"','" +
				StudentDetails.getRegistration_number()+"','" +
				StudentDetails.getMobile_number()+"','" +
				StudentDetails.getPhone_number()+"','" +
				StudentDetails.getAddress_line_1()+"','" +
				StudentDetails.getAddress_line_2()+"','" +
				StudentDetails.getCity()+"','" +
				StudentDetails.getState()+"','" +
				StudentDetails.getEmail_id()+"');";
		Connect c= new Connect();
		try {
			c.dml(query);
			c.logger(type, "Insert");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return batch_id;
	}
}
